<?php namespace web\admin\controller;
/** .-------------------------------------------------------------------
 * |  Software: [HDPHP framework]
 * |      Site: www.hdphp.com
 * |-------------------------------------------------------------------
 * |    Author: 向军 <2300071698@qq.com>
 * |    WeChat: aihoudun
 * | Copyright (c) 2012-2019, www.houdunwang.com. All Rights Reserved.
 * '-------------------------------------------------------------------*/

class Entry extends Common{
	private $db;
	public function __construct(){
		parent::__construct();
		$this->db=new \system\model\Admin;
	}
	//首页
	public function index() {
		View::with('title','管理员请登录');
		View::make();
	}
//	版本号	
	public function welcome(){
		View::make();
	}
//	退出
	public function out(){
//			将session清除
			session_unset();
			session_destroy();
			$url=U('Login/index');
			$str=<<<str
	<script type="text/javascript">
		alert('退出成功');
		parent.location.href="{$url}";
	</script>		
str;
			echo $str;die;
	}
	
	
	
	
	
	
	
	
	
	
	
	
}